{% extends "base.html" %}
{% load pagination_tags %}
{% load wiki_extras %}

{% block content %}
<h1>{{ page_title }}</h1>
{% if page_list %}
<table class="list" frame="hsides" rules="rows" width="100%">
<tr><th>Search Results</th></tr>
{% autopaginate page_list 10 %}
{% for page in page_list %}
<tr class="list">
<td><a href="{% url djambe.wiki.views.view page.id %}">{{ page.title|highlight_title:regex_list }}</a><br/>{{ page.text|highlight:regex_list }}<br style="margin:0.8em" /></td>
</tr>
{% endfor %}
</table><br/>
{% paginate %}
{% else %}
Your seach did not match any pages.
{% endif %}
{% endblock %}